package com.web.ThirdService.Service.Imp;

import com.web.ThirdService.Service.ThirdService;
import com.web.ThirdService.mappers.usemapper;
import entity.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ThirdServiceImp implements ThirdService {
    @Autowired
    usemapper usemapper;


    @Override
    public Item getItemById(Integer itemid) {
        return usemapper.getItemById(itemid);
    }

    @Override
    public void subtractStock(Integer itemid, Integer num) {
        usemapper.subtractStock(itemid,num);
    }

    @Override
    public void fallbackStock(Integer itemid, Integer num) {
        usemapper.fallbackStock(itemid,num);
    }


}
